[BITS 32]
[SECTION .text]

; <summary>
; int PixelOpAdd(void);
; </summary>
[GLOBAL nlPixelOpAdd]
nlPixelOpAdd:
	push ebp
	mov ebp, esp
	mov eax, 1
	cpuid
    mov eax, ebx
	shr eax, 10h
	and eax, 0FFh
	pop ebp
	ret

; <summary>
; int PixelOpMul(void);
; </summary>
[GLOBAL nlPixelOpMul]
nlPixelOpMul:
	push ebp
	mov ebp, esp
	mov eax, 1
	cpuid
    mov eax, ebx
	shr eax, 10h
	and eax, 0FFh
	pop ebp
	ret
	
; <summary>
; int PixelOpDiv(void);
; </summary>
[GLOBAL nlPixelOpDiv]
nlPixelOpDiv:
	push ebp
	mov ebp, esp
	mov eax, 1
	cpuid
    mov eax, ebx
	shr eax, 10h
	and eax, 0FFh
	pop ebp
	ret
